package org.example.demo.exception;

import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;

@ControllerAdvice
public class DiyExceptionController {
    @ExceptionHandler(value = {Exception.class})
    public String error() {
        return "error";
    }
}
